<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 5.4.2">
  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">


<link rel="stylesheet" href="/lib/font-awesome/css/all.min.css">

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"wrr123.github.io","root":"/","scheme":"Muse","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":false,"show_result":false,"style":null},"back2top":{"enable":true,"sidebar":false,"scrollpercent":false},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":true,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},"path":"search.json"};
  </script>

  <meta name="description" content="Tue Oct 29 09:46:47 CST 2019使用maven导入项目需要依赖的jar包时，明明在本地仓库存在需要的jar包，但是jar包导入不到项目中？ 一种可能性：pom文件中有一些jar在本地仓库没有，导致所有的jar包都引入不了。  pom文件中标签下的标签内容的含义？ compile 默认的scope。任何定义在compile scope下的依赖将会在所有的class paths">
<meta property="og:type" content="article">
<meta property="og:title" content="notebook-maven">
<meta property="og:url" content="https://wrr123.github.io/2020/08/16/notebook-maven/index.html">
<meta property="og:site_name" content="一缕烟气">
<meta property="og:description" content="Tue Oct 29 09:46:47 CST 2019使用maven导入项目需要依赖的jar包时，明明在本地仓库存在需要的jar包，但是jar包导入不到项目中？ 一种可能性：pom文件中有一些jar在本地仓库没有，导致所有的jar包都引入不了。  pom文件中标签下的标签内容的含义？ compile 默认的scope。任何定义在compile scope下的依赖将会在所有的class paths">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2020-08-15T16:42:17.000Z">
<meta property="article:modified_time" content="2022-02-18T02:52:04.495Z">
<meta property="article:author" content="田园隐士">
<meta property="article:tag" content="notebook">
<meta name="twitter:card" content="summary">

<link rel="canonical" href="https://wrr123.github.io/2020/08/16/notebook-maven/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'zh-CN'
  };
</script>

  <title>notebook-maven | 一缕烟气</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

<link rel="alternate" href="/atom.xml" title="一缕烟气" type="application/atom+xml">
</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <h1 class="site-title">一缕烟气</h1>
      <span class="logo-line-after"><i></i></span>
    </a>
      <p class="site-subtitle" itemprop="description">沧海月明珠有泪，蓝田日暖玉生烟</p>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
        <i class="fa fa-search fa-fw fa-lg"></i>
    </div>
  </div>
</div>




<nav class="site-nav">
  <ul id="menu" class="main-menu menu">
        <li class="menu-item menu-item-home">

    <a href="/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>归档</a>

  </li>
      <li class="menu-item menu-item-search">
        <a role="button" class="popup-trigger"><i class="fa fa-search fa-fw"></i>搜索
        </a>
      </li>
  </ul>
</nav>



  <div class="search-pop-overlay">
    <div class="popup search-popup">
        <div class="search-header">
  <span class="search-icon">
    <i class="fa fa-search"></i>
  </span>
  <div class="search-input-container">
    <input autocomplete="off" autocapitalize="off"
           placeholder="搜索..." spellcheck="false"
           type="search" class="search-input">
  </div>
  <span class="popup-btn-close">
    <i class="fa fa-times-circle"></i>
  </span>
</div>
<div id="search-result">
  <div id="no-result">
    <i class="fa fa-spinner fa-pulse fa-5x fa-fw"></i>
  </div>
</div>

    </div>
  </div>

</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content post posts-expand">
            

    
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://wrr123.github.io/2020/08/16/notebook-maven/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.gif">
      <meta itemprop="name" content="田园隐士">
      <meta itemprop="description" content="talk is cheap, show me the code">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="一缕烟气">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          notebook-maven
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>

              <time title="创建时间：2020-08-16 00:42:17" itemprop="dateCreated datePublished" datetime="2020-08-16T00:42:17+08:00">2020-08-16</time>
            </span>
              <span class="post-meta-item">
                <span class="post-meta-item-icon">
                  <i class="far fa-calendar-check"></i>
                </span>
                <span class="post-meta-item-text">更新于</span>
                <time title="修改时间：2022-02-18 10:52:04" itemprop="dateModified" datetime="2022-02-18T10:52:04+08:00">2022-02-18</time>
              </span>

          
            <span class="post-meta-item" title="阅读次数" id="busuanzi_container_page_pv" style="display: none;">
              <span class="post-meta-item-icon">
                <i class="fa fa-eye"></i>
              </span>
              <span class="post-meta-item-text">阅读次数：</span>
              <span id="busuanzi_value_page_pv"></span>
            </span><br>
            <span class="post-meta-item" title="本文字数">
              <span class="post-meta-item-icon">
                <i class="far fa-file-word"></i>
              </span>
                <span class="post-meta-item-text">本文字数：</span>
              <span>2.8k</span>
            </span>
            <span class="post-meta-item" title="阅读时长">
              <span class="post-meta-item-icon">
                <i class="far fa-clock"></i>
              </span>
                <span class="post-meta-item-text">阅读时长 &asymp;</span>
              <span>3 分钟</span>
            </span>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <h1 id="Tue-Oct-29-09-46-47-CST-2019"><a href="#Tue-Oct-29-09-46-47-CST-2019" class="headerlink" title="Tue Oct 29 09:46:47 CST 2019"></a>Tue Oct 29 09:46:47 CST 2019</h1><h2 id="使用maven导入项目需要依赖的jar包时，明明在本地仓库存在需要的jar包，但是jar包导入不到项目中？"><a href="#使用maven导入项目需要依赖的jar包时，明明在本地仓库存在需要的jar包，但是jar包导入不到项目中？" class="headerlink" title="使用maven导入项目需要依赖的jar包时，明明在本地仓库存在需要的jar包，但是jar包导入不到项目中？"></a>使用maven导入项目需要依赖的jar包时，明明在本地仓库存在需要的jar包，但是jar包导入不到项目中？</h2><ol>
<li>一种可能性：pom文件中有一些jar在本地仓库没有，导致所有的jar包都引入不了。</li>
</ol>
<h2 id="pom文件中标签下的标签内容的含义？"><a href="#pom文件中标签下的标签内容的含义？" class="headerlink" title="pom文件中标签下的标签内容的含义？"></a>pom文件中<dependency>标签下的<scope>标签内容的含义？</scope></dependency></h2><ul>
<li>compile<blockquote>
<p>默认的scope。任何定义在compile scope下的依赖将会在所有的class paths下可用。maven工程会将其打包到最终的artifact中。如果你构建一个WAR类型的artifact，那么在compile scope下引用的JAR文件将会被集成到WAR文件内。</p>
</blockquote>
</li>
<li>provided<blockquote>
<p>这个scope假定对应的依赖会由运行这个应用的JDK或者容器来提供。最好的例子就是servlet API。任何在provided scope下定义的依赖在构建时的类路径里是可用的，但是不会被打包到最终的artifact中。如果是一个WAR的文件，servlet API在构建时的类路径里是可用的，但是并不会被打包到WAR文件中</p>
</blockquote>
</li>
<li>rumtime<blockquote>
<p>在runtime scope下定义的依赖只会在运行期可用，而在构建期的类路径下不可用。这些依赖将会被打包到最终的artifact中。比如你有一个基于web的应用需要在运行时访问MySQL数据库。你的代码没有任何MySQL数据库驱动的硬依赖。你的代码仅仅是基于JDBC API来编写，在构建期并不需要MySQL数据库驱动。然而，在运行期，就需要相应的驱动来操作MySQL数据库了。因此，这个驱动应该被打包到最终的artifact中。</p>
</blockquote>
</li>
<li>test<blockquote>
<p>只用于测试变异的依赖（比如JUnit），execution必须定义在test scope下。这些依赖不会被打包到最终的artifact中。</p>
</blockquote>
</li>
<li>system<blockquote>
<p>于provided scope很像。唯一的区别在于，在system scope中，你需要告诉Maven如何去找到这个依赖。如果你要引用的依赖在Maven仓库中不存在时，就可以用这个scope。不推荐使用system依赖。</p>
</blockquote>
</li>
</ul>
<h2 id="maven配置镜像仓库和伺服仓库"><a href="#maven配置镜像仓库和伺服仓库" class="headerlink" title="maven配置镜像仓库和伺服仓库"></a>maven配置镜像仓库和伺服仓库</h2><ul>
<li>一般镜像仓库只配置一个， 伺服仓库可以配置多个。</li>
</ul>
<h2 id="maven项目编译报错，error-reading-file-error-in-opening-zip-file"><a href="#maven项目编译报错，error-reading-file-error-in-opening-zip-file" class="headerlink" title="maven项目编译报错，error reading file:.. error in opening zip file?"></a>maven项目编译报错，<code>error reading file:.. error in opening zip file</code>?</h2><ul>
<li>在本地仓库删除报错的jar包，将其删除掉，然后从远程仓库重新下载。</li>
</ul>
<h1 id="Tue-Nov-12-13-56-49-CST-2019"><a href="#Tue-Nov-12-13-56-49-CST-2019" class="headerlink" title="Tue Nov 12 13:56:49 CST 2019"></a>Tue Nov 12 13:56:49 CST 2019</h1><h2 id="maven打包时，跳过测试用例"><a href="#maven打包时，跳过测试用例" class="headerlink" title="maven打包时，跳过测试用例"></a>maven打包时，跳过测试用例</h2><blockquote>
<p>-DskipTests，不执行测试用例，但编译测试用例类生成相应的class文件至target/test-classes下。<br>-Dmaven.test.skip=true，不执行测试用例，也不编译测试用例类。</p>
</blockquote>
<h2 id="maven将class文件打包成一个单独的jar包？"><a href="#maven将class文件打包成一个单独的jar包？" class="headerlink" title="maven将class文件打包成一个单独的jar包？"></a>maven将class文件打包成一个单独的jar包？</h2><blockquote>
<figure class="highlight xml"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"></span><br></pre></td></tr></table></figure>
</blockquote>
<!--将class文件打成jar-->
<p><plugin><br>    <groupId>org.apache.maven.plugins</groupId><br>    <artifactId>maven-jar-plugin</artifactId><br>    <version>2.6</version><br>    <configuration><br>        <encoding>UTF-8</encoding>
    </configuration><br>    <executions><br>        <execution><br>            <phase>package</phase><br>            <goals><br>                <goal>jar</goal>
            </goals><br>            <configuration><br>                <classesDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</classesDirectory><br>                <finalName>my_jar</finalName><br>                <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/lib</outputDirectory><br>                <includes><br>                    <include>com/**</include>
                </includes>
            </configuration>
        </execution>
    </executions>
</plugin><br>  <figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line"># Thu Nov 14 10:41:39 CST 2019</span><br><span class="line">## archetype plugin的学习</span><br><span class="line">1. 创建一个项目的骨架，可以从已存在的archetype库中，也可以从存在的项目中。</span><br><span class="line">2. goals</span><br><span class="line">  - archetype:generate</span><br><span class="line">  - archetype:create-from-project</span><br><span class="line">  - archetype:crawl</span><br><span class="line"></span><br><span class="line"># Mon Nov 18 17:52:09 CST 2019</span><br><span class="line">## 导入本地jar包到本地maven仓库</span><br><span class="line">`mvn install:install-file -Dfile=lombok-1.18.8.jar -DgroupId=org.projectlombok -DartifactId=lombok -Dversion=1.18.8 -Dpackaging=jar`</span><br><span class="line"></span><br><span class="line"># Tue Nov 19 13:55:50 CST 2019</span><br><span class="line">## 通过pom文件来生成一个基础的maven项目</span><br><span class="line"></span><br><span class="line"># Sat Dec  7 20:26:11 CST 2019</span><br><span class="line">## 常见maven命令的使用和含义</span><br><span class="line">1. `mvn dependency:tree ` 展示项目的jar包之间的依赖关系,可解决jar包冲突等问题。</span><br><span class="line">  - 参数 -Dverbose=true 展示详细信息</span><br><span class="line">  - 参数 -Dincludes=`groupId:artifactId:version` 只展示你需要的jar包信息</span><br><span class="line">  - 参数 -Dexcludes=`groupId:artifactId:version` 只展示你不需要的jar包信息</span><br><span class="line"></span><br><span class="line">## Fatal error compiling: 无效的标记</span><br><span class="line">  可能是项目使用的jdk版本和maven的jdk版本不一致导致的。</span><br><span class="line"></span><br><span class="line"># Sun Dec  8 21:39:09 CST 2019</span><br><span class="line">## maven中phase，plugin，goal之间的区别是什么？</span><br><span class="line">- goal是maven中执行的最小单元；</span><br><span class="line">- 一个phase或者plugin包含一个或者多个goal；</span><br><span class="line"># Tue Dec 10 10:32:05 CST 2019</span><br><span class="line">## `mvn install`产生的错误</span><br><span class="line">1. compailation failure: 名称冲突，类A的方法和类B的方法，具有相同的疑符，但两者均不隐藏对方？</span><br><span class="line">2. 子模块和父模块中存在同一个jar包依赖，以哪个为准？</span><br><span class="line">3. compailation failure: 找不到合适的方法？</span><br><span class="line">  jdk版本引入错误，可能使用了高版本的jdk</span><br><span class="line">4. compailation failure: 错误(非法字符 `\ufeff`),错误(需要class,interface,enum)?</span><br><span class="line">  编码为UTF-8，应为UTF-8 无 BOM。</span><br><span class="line">5. compailation failure: 错误(编码UTF-8的不可映射字符)?</span><br><span class="line">  编码应该UTF-8，实际上不是。</span><br><span class="line">6. exceptions: File: &#x27;java.lang.CharSequence&#x27;: Invalid byte tag in constant pool: 15 ?</span><br><span class="line"></span><br><span class="line">## 文件编码`UTF-8`和`UTF-8 无 BOM`的区别？</span><br><span class="line"></span><br><span class="line"># Wed Dec 11 13:32:54 CST 2019</span><br><span class="line">## ant(ivy),maven,gradle之间的区别和联系？</span><br><span class="line">- 时间排序(从小到大): ant&lt;maven&lt;gradle</span><br><span class="line">- 最小单元</span><br><span class="line">  ant(target), maven(goal), gradle(task)</span><br><span class="line">- 都是项目构建工具</span><br><span class="line"></span><br></pre></td></tr></table></figure></p>

    </div>

    
    
    
        

  <div class="followme">
    <p>欢迎关注我的其它发布渠道</p>

    <div class="social-list">

        <div class="social-item">
          <a target="_blank" class="social-link" href="/atom.xml">
            <span class="icon">
              <i class="fa fa-rss"></i>
            </span>

            <span class="label">RSS</span>
          </a>
        </div>
    </div>
  </div>


      <footer class="post-footer">
          <div class="post-tags">
              <a href="/tags/notebook/" rel="tag"># notebook</a>
          </div>

        


        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/2020/08/16/notebook-oracle/" rel="prev" title="notebook-oracle">
      <i class="fa fa-chevron-left"></i> notebook-oracle
    </a></div>
      <div class="post-nav-item">
    <a href="/2020/08/16/notebook-macOS/" rel="next" title="notebook-macOS">
      notebook-macOS <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  



          </div>
          

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
          <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#Tue-Oct-29-09-46-47-CST-2019"><span class="nav-number">1.</span> <span class="nav-text">Tue Oct 29 09:46:47 CST 2019</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#%E4%BD%BF%E7%94%A8maven%E5%AF%BC%E5%85%A5%E9%A1%B9%E7%9B%AE%E9%9C%80%E8%A6%81%E4%BE%9D%E8%B5%96%E7%9A%84jar%E5%8C%85%E6%97%B6%EF%BC%8C%E6%98%8E%E6%98%8E%E5%9C%A8%E6%9C%AC%E5%9C%B0%E4%BB%93%E5%BA%93%E5%AD%98%E5%9C%A8%E9%9C%80%E8%A6%81%E7%9A%84jar%E5%8C%85%EF%BC%8C%E4%BD%86%E6%98%AFjar%E5%8C%85%E5%AF%BC%E5%85%A5%E4%B8%8D%E5%88%B0%E9%A1%B9%E7%9B%AE%E4%B8%AD%EF%BC%9F"><span class="nav-number">1.1.</span> <span class="nav-text">使用maven导入项目需要依赖的jar包时，明明在本地仓库存在需要的jar包，但是jar包导入不到项目中？</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#pom%E6%96%87%E4%BB%B6%E4%B8%AD%E6%A0%87%E7%AD%BE%E4%B8%8B%E7%9A%84%E6%A0%87%E7%AD%BE%E5%86%85%E5%AE%B9%E7%9A%84%E5%90%AB%E4%B9%89%EF%BC%9F"><span class="nav-number">1.2.</span> <span class="nav-text">pom文件中标签下的标签内容的含义？</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#maven%E9%85%8D%E7%BD%AE%E9%95%9C%E5%83%8F%E4%BB%93%E5%BA%93%E5%92%8C%E4%BC%BA%E6%9C%8D%E4%BB%93%E5%BA%93"><span class="nav-number">1.3.</span> <span class="nav-text">maven配置镜像仓库和伺服仓库</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#maven%E9%A1%B9%E7%9B%AE%E7%BC%96%E8%AF%91%E6%8A%A5%E9%94%99%EF%BC%8Cerror-reading-file-error-in-opening-zip-file"><span class="nav-number">1.4.</span> <span class="nav-text">maven项目编译报错，error reading file:.. error in opening zip file?</span></a></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#Tue-Nov-12-13-56-49-CST-2019"><span class="nav-number">2.</span> <span class="nav-text">Tue Nov 12 13:56:49 CST 2019</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#maven%E6%89%93%E5%8C%85%E6%97%B6%EF%BC%8C%E8%B7%B3%E8%BF%87%E6%B5%8B%E8%AF%95%E7%94%A8%E4%BE%8B"><span class="nav-number">2.1.</span> <span class="nav-text">maven打包时，跳过测试用例</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#maven%E5%B0%86class%E6%96%87%E4%BB%B6%E6%89%93%E5%8C%85%E6%88%90%E4%B8%80%E4%B8%AA%E5%8D%95%E7%8B%AC%E7%9A%84jar%E5%8C%85%EF%BC%9F"><span class="nav-number">2.2.</span> <span class="nav-text">maven将class文件打包成一个单独的jar包？</span></a></li></ol></li></ol></div>
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
  <p class="site-author-name" itemprop="name">田园隐士</p>
  <div class="site-description" itemprop="description">talk is cheap, show me the code</div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives/">
        
          <span class="site-state-item-count">347</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/categories/">
        <span class="site-state-item-count">53</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/tags/">
        <span class="site-state-item-count">115</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>



      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

        

<div class="copyright">
  
  &copy; 
  <span itemprop="copyrightYear">2022</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">田园隐士</span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item-icon">
      <i class="fa fa-chart-area"></i>
    </span>
    <span title="站点总字数">587k</span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item-icon">
      <i class="fa fa-coffee"></i>
    </span>
    <span title="站点阅读时长">8:53</span>
</div>
  <div class="powered-by">由 <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> & <a href="https://muse.theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Muse</a> 强力驱动
  </div>

        
<div class="busuanzi-count">
  <script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
    <span class="post-meta-item" id="busuanzi_container_site_uv" style="display: none;">
      <span class="post-meta-item-icon">
        <i class="fa fa-user"></i>
      </span>
      <span class="site-uv" title="总访客量">
        <span id="busuanzi_value_site_uv"></span>
      </span>
    </span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item" id="busuanzi_container_site_pv" style="display: none;">
      <span class="post-meta-item-icon">
        <i class="fa fa-eye"></i>
      </span>
      <span class="site-pv" title="总访问量">
        <span id="busuanzi_value_site_pv"></span>
      </span>
    </span>
</div>








      </div>
    </footer>
  </div>

  
  <script src="/lib/anime.min.js"></script>
  <script src="/lib/velocity/velocity.min.js"></script>
  <script src="/lib/velocity/velocity.ui.min.js"></script>

<script src="/js/utils.js"></script>

<script src="/js/motion.js"></script>


<script src="/js/schemes/muse.js"></script>


<script src="/js/next-boot.js"></script>




  




  
<script src="/js/local-search.js"></script>













  

  

  

</body>
</html>
